#include<iostream>
using namespace std;
int a[3000000];
int main ()
{
	int n;
	cin>>n;
	for (int i=1;i<=n;i++)
		cin>>a[i];
	for (int i=1;i<n;i++)
		for (int j=i+1;j<=n;j++)
			if (a[i]>a[j])
			{
				int t=a[i];a[i]=a[j];a[j]=t;
			}
	for (int i=1;i<=n;i++)
		cout<<a[i]<<" ";
	return 0;
}
